package com.itheima.iostream;

import java.io.FileInputStream;
import java.io.IOException;

public class ByteStreamDemo5 {
    public static void main(String[] args) throws IOException {
        //字节输入流循环读取
        FileInputStream fis = new FileInputStream("day28-code\\a.txt");

        int b;
        //read表示读取数据，而且读取一次移动一次指针
        while ((b=fis.read())!=-1){
            System.out.print((char) b);
        }
    }
}
